<%@page import="cn.edu.ujn.finalwork.dao.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人页面</title>
 <style>
            .content {
                margin: 0 auto;
                width: 1000px;
                background-color: aquamarine;
                box-shadow: 2px 2px 2px 2px rgb(138, 136, 165);
                padding: 10px;
                position: relative;
                height: 700px;
            }
            .touxiang{
                width: 100px;
                height: 100px;
                border-radius: 50%;
                background-size: cover;
                background:no-repeat center center;
                background-attachment:fixed;
                box-shadow: 2px 2px 2px 2px rgb(52, 51, 53);
                position: absolute;
                z-index: 999;
                top: 100px;
                left: 450px;
                border: 2px solid white;

            }
            .beijing{
                width: 100%;
                background-position: center;
                box-shadow: 2px 2px 2px 2px rgb(52, 51, 53);
            }
            .name{
                position: absolute;
                z-index: 999;
                font-size: larger;
                top: 220px;
                width: 100px;
                left: 450px;
                text-align: center;
                color: white;
                background: black;
                border: 1px solid white;
            }
             .function{
                color: white;
                position: absolute;
                top: 20px;
                right: 20px;
                z-index: 999;
                margin: 0;
                padding: 5px;
                background-color: antiquewhite;
                border-radius: 5px;
                box-shadow: 1px 1px 1px 1px rgb(138, 136, 165);
            }
            .zhuxiao{
                color: white;
                position: absolute;
                top: 20px;
                left: 20px;
                z-index: 999;
                margin: 0;
                padding: 5px;
                background-color: antiquewhite;
                border-radius: 5px;
                box-shadow: 1px 1px 1px 1px rgb(138, 136, 165);
            }
            .show{
            
            }
        </style>
</head>
<body>
<%User user=(User)session.getAttribute("userr");
String status=(String)session.getAttribute("status");
String au=(String)session.getAttribute("authority");
%>
  <div class="content">
            <div class="function">
                <center><a href="tui">退出</center>
                <center><a href="geren">个人资料</a></center>
            </div>
            <div class="zhuxiao">
                <center><a href="zhuxiao">注销</a></center>
            </div>
            <img src=<%=user.getUserAvatar()%> class="touxiang"/>
            <div class="name"><%=user.getUserName() %></div>
            <img src="https://img1.baidu.com/it/u=1870494998,2243091095&fm=253&fmt=auto&app=120&f=JPEG?w=780&h=366" alt="展示失败！" class="beijing"/>
            <div class="show">
            您最后的登录时间为：<%=user.getLogData() %>
            <br>
            您最后登录的ip地址为：<%=user.getLoginIp() %>
            <br>
            您的用户状态为：<%=status %>
            <br>
            您的用户权限为：<%=au %>
            <br>
            <a href="cus">客户管理</a>
            <br>
            <a href="shu">数据字典管理</a>
            </div> 
</body>
</html>